387aaf8a96070629a9e1a3014060731fa343f207,security-admin/src/main/java/org/apache/ranger/biz/RangerTagDBRetriever.java,TagRetrieverTagContext,TagRetrieverTagContext,#XXService#,473
Before Change
Long serviceId = xService == null ? null : xService.getId();
List<XXTag> xTags = daoMgr.getXXTag().findForServicePlugin(serviceId);
List<XXTagAttribute> xTagAttributes = daoMgr.getXXTagAttribute().findForServicePlugin(serviceId);
this.service = xService;
this.iterTag = xTags.listIterator();
After Change
TagRetrieverTagContext(XXService xService) {
Long serviceId = xService == null ? null : xService.getId();
List<XXTag> xTags = filterForServicePlugin ? daoMgr.getXXTag().findForServicePlugin(serviceId) : daoMgr.getXXTag().findByServiceId(serviceId);
List<XXTagAttribute> xTagAttributes = filterForServicePlugin ? daoMgr.getXXTagAttribute().findForServicePlugin(serviceId) : daoMgr.getXXTagAttribute().findByServiceId(serviceId);
this.service = xService;
this.iterTag = xTags.listIterator();